home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2099 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  50 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: newshub.cts.com!crash!cercle!bbs
  3. From: franck.roumy@centre.net
  4. Subject: Boopsi... tsss, tsss....
  5. Sender: bbs@cercle.centre.net (Franck Roumy)
  6. Organization: CentreNet
  7. Message-ID: <1996Jan24.233515.26181@cercle.centre.net>
  8. Date: Wed, 24 Jan 1996 23:35:15 GMT
  9.  
  10.         Hi every helpers,
  11.  
  12.         I'm trying to code the "db_button.gadget", a boopsi button, which
  13. seems to be very usefull. Sad thing, I don't know how to declare it as a
  14. "Button", to receive the appropiate IDCMP_GADGETUP/DOWN code. So, I obtain
  15. beautifull buttons, (beautifull pictures, beautifull colors...), and nothing
  16. appends when the user click them!!
  17.  
  18.         _Here is the questions:_
  19.  
  20.       * How should I declare it as a "BUTTON_KIND"?
  21.  
  22.       * Should I use more than the "NewObjectA" Intuition's command (or
  23.         another instruction)?
  24.  
  25.         (my method:
  26.  
  27.         move.l  _ButtonBase(a5),a6
  28.         call    dbBT_GetClass
  29.         move.l  d0,_ButtonClass(a5)
  30.         (...)
  31.         move.l  _IntuitionBase(a5),a6
  32.         move.l  _ButtonClass(a5),a0
  33.         suba.l  a1,a1
  34.         lea     Tags,a2
  35.         call    NewObjectA      And my new button is created...
  36.         ...)
  37.  
  38.       * I've found the "button.gadget" in my "Class/Gadgets" directory, does
  39.         someone have some informations about it? A documention? (to send?
  40.         ;-)
  41.  
  42.         Thanx, thanx, thanx...
  43.  
  44.  
  45.    __   __                                    __   __
  46.    \ \V/ / E-Mail:  franck.roumy@centre.net   \ \V/ / Coder Amiga
  47.     > U <       &:  grafx@centre.net           > U <  100%
  48.    ( / \ ) Minitel: Graf'X (3614/15 AmigaTel) ( / \ ) assembler (gasp!)
  49.     »   »                                      »   »
  50.